gint theme_icon_size; /* icon size from theme node */
gint icon_size; /* icon size we are using */
GIcon *fallback_gicon;
+ GIcon *default_gicon;
CoglPipeline *shadow_pipeline;
StShadow *shadow_spec;
static void st_icon_update_shadow_pipeline (StIcon *icon);
static void st_icon_clear_shadow_pipeline (StIcon *icon);
+#define IMAGE_MISSING_ICON_NAME "image-missing"
#define DEFAULT_ICON_SIZE 48
static void
g_clear_object (&priv->gicon);
g_clear_object (&priv->fallback_gicon);
+ g_clear_object (&priv->default_gicon);
g_clear_pointer (&priv->shadow_pipeline, cogl_object_unref);
g_clear_pointer (&priv->shadow_spec, st_shadow_unref);
CLUTTER_BIN_ALIGNMENT_FILL);
clutter_actor_set_layout_manager (CLUTTER_ACTOR (self), layout_manager);
+ self->priv->default_gicon = g_themed_icon_new (IMAGE_MISSING_ICON_NAME);
+
self->priv->icon_size = DEFAULT_ICON_SIZE;
self->priv->prop_icon_size = -1;
paint_scale,
resource_scale);
+ if (priv->pending_texture == NULL)
+ priv->pending_texture = st_texture_cache_load_gicon (cache,
+ theme_node,
+ priv->default_gicon,
+ priv->icon_size,
+ paint_scale,
+ resource_scale);
+
if (priv->pending_texture)
{
g_object_ref_sink (priv->pending_texture);